<?php

namespace App\Http\Requests\Api;

class ResumeIntentRequest extends ApiRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'id' => 'bail|required|integer',
            'expectedsalary' => 'bail|required|integer|between:0,1000000',
            'isexpectedsalary' => 'bail|required|integer|between:0,1',
            'intentionjobs' => 'required',
            'jobsort' => 'required',
            'jobarea' => 'required',
        ];
    }

    public function attributes()
    {
        return [
            'expectedsalary' => '期望薪资',
            'isexpectedsalary' => '显示面议',
            'intentionjobs' => '意向工作岗位',
            'jobsort' => '工作岗位',
            'jobarea' => '工作地区',
        ];
    }

//    public function messages()
//    {
//        return array_merge(parent::messages(),[
//
//        ]);
//    }
}
